package student

func Getmoney(chengben float32, shijian int) (yingye float32, yuanyin string, kaixin bool) {
	yingye = 0
	if chengben < 120 {
		if shijian > 12 {
			yingye = chengben * 5
			yingye = yingye + float32(shijian)*2
			return yingye, "时间充足", true
		} else {
			yingye = chengben * 3
			return yingye, "时间略少", false
		}
	} else if chengben < 500 {
		yingye = chengben * 3
		if shijian > 10 {

		}
		return yingye, "缺少时间", false
	} else if chengben >= 500 {
		yingye = chengben * 5
		return yingye, "成本充足", true
	}
	return yingye, "不知道原因", true
}
